// uno.config.ts
import Unocss from 'unocss/vite'
import { defineConfig, presetAttributify, presetIcons, presetUno } from 'unocss'

export default defineConfig({
  presets: [
    presetUno(), // 默认预设
    presetAttributify(), // 属性化模式支持
  ],
  // 添加自定义规则
  rules: [
    ['m-1', { margin: '0.25rem' }],
  ],
  shortcuts: {
    'btn': 'py-2 px-4 font-semibold rounded-lg shadow-md',
  },
  theme: {
    colors: {
      primary: '#3498db',
      secondary: '#9b59b6',
    }
  }
})